<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>互联网村镇管理平台</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/common.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css/main.css}" />
</head>
<body>
    <div class="container clearfix">
        <div class="main-wrap">
            <div class="crumb-wrap">
                <div class="crumb-list">
                    <i class="icon-font">&#xe926;</i>
                    <a href="javascript:void(0);">信息管理</a>
                    <span class="crumb-step">&gt;</span>
                    <span class="crumb-name">劳务管理</span>
                </div>
            </div>
            <div class="search-wrap">
                <div class="search-content">
                    <form th:action="@{/labour/list}" method="post" id="queryForm">
                        <table class="search-tab" style="margin-left: 10px;">
                            <tr>
                                <th width="70">劳务名称:</th>
                                <td>
                                    <input class="common-text" placeholder="劳务名称" name="labourName" th:value="${labourName }" type="text" />
                                </td>
                                <td>
                                    <input class="btn btn-primary btn2" name="sub" value="查询" type="submit">
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
            <div class="result-wrap">
                <div class="result-title" th:if="${status==2 }">
                    <div class="result-list">
                        <a th:href="@{/labour/toAdd}"><i class="icon-font">&#xea0a;</i>新增劳务</a>
                        <a id="batchDel" href="javascript:batchDeleteLabour();"><i class="icon-font">&#xe9ac;</i>批量删除</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" onclick="javascript:shiro.form.setCheckBoxSelectToggle('labourIdCheckBox');" type="checkbox" /></th>
                            <th width="20%">劳务名称</th>
                            <th width="20%">公司名称</th>
                            <th width="20%">工作描述</th>
                            <th width="20%">工作地址</th>
                            <th width="10%">要求学历</th>
                            <th width="15%">工作经验</th>
                            <th width="15%">薪资待遇</th>
                            <th width="15%">发布时间</th>
                            <th class="tc" width="10%">操作</th>
                        </tr>
                        <tr th:each="labour:${labourList}">
                            <td class="tc">
                                <input name="labourIdCheckBox" th:value="${labour?.labourId }" type="checkbox" />
                            </td>
                            <td th:text="${labour?.labourName }"></td>
                            <td th:text="${labour?.companyName }"></td>
                            <td th:text="${labour?.labourDesc }"></td>
                            <td th:text="${labour?.workAddress }"></td>
                            <td th:if="${labour?.labourEducation==1 }">高中</td>
                            <td th:if="${labour?.labourEducation==2 }">大专</td>
                            <td th:if="${labour?.labourEducation==3 }">本科</td>
                            <td th:if="${labour?.labourEducation==4 }">研究生</td>
                            <td th:if="${labour?.labourEducation==5 }">博士生</td>
                            <td th:if="${labour?.labourEducation==6 }">硕士生</td>
                            <td>
                            	<span th:text="${labour?.labourMinYear}"></span>
                            	~
                            	<span th:text="${labour?.labourMaxYear}"></span>
                            	年
                            </td>
                            <td>
                            	<span th:text="${labour?.labourMinPrice}"></span>
                            	~
                            	<span th:text="${labour?.labourMaxPrice}"></span>
                            	元
                            </td>
                            <td th:text="${#dates.format(labour?.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                            <td class="tc" th:if="${labour?.status==2 }">
                                <a class="link-update" th:href="@{'/labour/toEdit/' + ${labour?.labourId}}">修改</a>
                                <a class="link-del" th:href="'javascript:deleteLabour(\'' + ${labour?.labourId } + '\');'">删除</a>
                            </td>
                            <td class="tc" th:if="${labour?.status==1 }">
                                <a class="link-update" th:href="'javascript:adoptLabour(\'' + ${labour?.labourId } + '\');'">通过</a>
                                <a class="link-del" th:href="'javascript:rejectLabour(\'' + ${labour?.labourId } + '\');'">驳回</a>
                            </td>
                            <td class="tc" th:if="${labour?.status==3 }">
                                <a class="link-update" th:href="'javascript:viewLabour(\'' + ${labour?.labourId } + '\');'">查看</a>
                                <a class="link-del" th:href="'javascript:deleteLabour(\'' + ${labour?.labourId } + '\');'">删除</a>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="list-page" th:utext="${pageHtml}">
                </div>
            </div>
        </div>
    </div>
    <div th:include="admin/common/common"></div>
    <script type="text/javascript" th:src="@{/js/web/labour/labour.js?v=1.1}"></script>
</body>
</html>